package com.g8.pethospitallearnbackend.entity;

import java.io.Serializable;

public class Vaccine implements Serializable {
    private String vaccineId;

    private String vaccineName;

    private Double vaccinePrice;

    private String vaccineDesc;

    private static final long serialVersionUID = 1L;

    public String getVaccineId() {
        return vaccineId;
    }

    public void setVaccineId(String vaccineId) {
        this.vaccineId = vaccineId;
    }

    public String getVaccineName() {
        return vaccineName;
    }

    public void setVaccineName(String vaccineName) {
        this.vaccineName = vaccineName;
    }

    public Double getVaccinePrice() {
        return vaccinePrice;
    }

    public void setVaccinePrice(Double vaccinePrice) {
        this.vaccinePrice = vaccinePrice;
    }

    public String getVaccineDesc() {
        return vaccineDesc;
    }

    public void setVaccineDesc(String vaccineDesc) {
        this.vaccineDesc = vaccineDesc;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", vaccineId=").append(vaccineId);
        sb.append(", vaccineName=").append(vaccineName);
        sb.append(", vaccinePrice=").append(vaccinePrice);
        sb.append(", vaccineDesc=").append(vaccineDesc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Vaccine other = (Vaccine) that;
        return (this.getVaccineId() == null ? other.getVaccineId() == null : this.getVaccineId().equals(other.getVaccineId()))
            && (this.getVaccineName() == null ? other.getVaccineName() == null : this.getVaccineName().equals(other.getVaccineName()))
            && (this.getVaccinePrice() == null ? other.getVaccinePrice() == null : this.getVaccinePrice().equals(other.getVaccinePrice()))
            && (this.getVaccineDesc() == null ? other.getVaccineDesc() == null : this.getVaccineDesc().equals(other.getVaccineDesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getVaccineId() == null) ? 0 : getVaccineId().hashCode());
        result = prime * result + ((getVaccineName() == null) ? 0 : getVaccineName().hashCode());
        result = prime * result + ((getVaccinePrice() == null) ? 0 : getVaccinePrice().hashCode());
        result = prime * result + ((getVaccineDesc() == null) ? 0 : getVaccineDesc().hashCode());
        return result;
    }
}